﻿using System.Collections.Generic;
using Validity.Contexts;
using Validity.Rules;

namespace Validity.Test.Contexts
{
  public class StubValidationContext<T>
    : ValidationContext<ObjectStub, T>
  {
    private readonly IList<IRule<ObjectStub, T>> _rules;

    protected override IList<IRule<ObjectStub, T>> Rules { get { return _rules; } }

    public IList<IRule<ObjectStub, T>> Rule { get { return _rules; } }

    public StubValidationContext()
    {
      _rules = new List<IRule<ObjectStub, T>>();
    }
  }
}
